//
//  M1User+M1.h
//  NewMarryU
//
//  Created by apple on 2018/7/23.
//  Copyright © 2018年 Cedar. All rights reserved.
//

#import "M1User.h"

/*
    M1UserPermission_Chat 需要传入to_uid，其他类型不需要
 */
typedef NS_ENUM(NSInteger, M1UserPermission) {
    M1UserPermission_Chat = 0, //聊天权限
    M1UserPermission_Search,   //高级搜索
    M1UserPermission_ToChat,   //聊天对象的权限
};
@interface M1User (M1)
+(void)save:(NSDictionary *)dic;
+(void)saveModel:(M1User *)user;
+(void)remove;
+(void)m1_userPermissionForm:(UIViewController *)vc type:(M1UserPermission)type to_uid:(NSString *)to_uid permission:(void(^)(NSDictionary *resDic))block;

-(void)m1_joinblocklist:(NSString *)to_uid;

+(void)m1_removeImageCache;
@end
